package cn.anecansaitin.whimsy.client.event;

import net.minecraft.world.entity.player.Player;
import net.neoforged.neoforge.common.NeoForge;

import java.util.Set;
import java.util.UUID;

public class ModClientEventHooks {
    public static boolean onMouseMove() {
        MouseMoveEvent event = new MouseMoveEvent();
        NeoForge.EVENT_BUS.post(event);
        return event.isCanceled();
    }

    public static boolean onPreKeyboardPress(int key, int scanCode, int action, int modifiers) {
        PreKeyInputEvent event = new PreKeyInputEvent(key, scanCode, action, modifiers);
        NeoForge.EVENT_BUS.post(event);
        return event.isCanceled();
    }

    public static Set<UUID> onFOVModifierWithSpeed() {
        FOVModifierWithSpeed event = new FOVModifierWithSpeed();
        NeoForge.EVENT_BUS.post(event);
        return event.getRemovedModifiers();
    }

    public static void onCameraSetup() {
        NeoForge.EVENT_BUS.post(new CameraSetupEvent());
    }
}
